<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>个人中心 - 新时代文明实践智慧服务系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: white;
            overflow-x: hidden;
            padding-top: 44px;
            padding-bottom: 60px;
            min-height: 100vh;
        }
        
        /* 渐变背景区域 */
        .gradient-background {
            background: white;
            padding: 15px 0 20px 0;
            border-radius: 0;
            margin: 0;
        }
        
        /* 顶部导航栏 */
        .navbar {
            background: linear-gradient(to bottom, #fce4ec 0%, #fff3e0 100%);
            backdrop-filter: blur(10px);
            color: #ff6b00;
            height: 44px;
            padding: 0 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .navbar-left {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }
        
        .back-btn {
            font-size: 18px;
        }
        
        .navbar-title {
            font-size: 16px;
            font-weight: bold;
        }
        
        .navbar-right {
            display: flex;
            gap: 15px;
            font-size: 18px;
        }
        
        .nav-icon {
            cursor: pointer;
            transition: opacity 0.3s;
        }
        
        .nav-icon:hover {
            opacity: 0.7;
        }
        
        /* 用户头部卡片 */
        .profile-header {
            background: linear-gradient(135deg, rgb(229, 75, 54) 0%, rgb(240, 110, 30) 30%, rgb(255, 120, 40) 60%, rgb(255, 140, 60) 100%);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin: 15px 15px 15px 15px;
            margin-top: 15px;
            border-radius: 16px;
            padding: 20px;
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .profile-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            transform: rotate(45deg);
            pointer-events: none;
        }
        
        .profile-content {
            position: relative;
            z-index: 2;
        }
        
        .profile-info {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .profile-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .profile-avatar:hover {
            transform: scale(1.05);
        }
        
        .profile-details {
            flex: 1;
        }
        
        .profile-name {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .profile-level {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
        }
        
        .profile-title {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 5px;
        }
        
        .profile-id {
            font-size: 12px;
            opacity: 0.7;
        }
        
        .profile-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 15px;
            backdrop-filter: blur(10px);
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 3px;
        }
        
        .stat-label {
            font-size: 10px;
            opacity: 0.8;
        }
        
        /* 功能菜单 */
        .menu-section {
            background: white;
            margin: 0 15px 15px 15px;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        }
        
        .menu-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f2f5;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item:hover {
            background: #f8f9fa;
        }
        
        .menu-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: white;
        }
        
        .menu-icon.blue {
            background: linear-gradient(135deg, #1976d2, #42a5f5);
        }
        
        .menu-icon.orange {
            background: linear-gradient(135deg, #1976d2, #42a5f5);
        }
        
        .menu-icon.green {
            background: linear-gradient(135deg, #4caf50, #8bc34a);
        }
        
        .menu-icon.purple {
            background: linear-gradient(135deg, #9c27b0, #e91e63);
        }
        
        .menu-icon.red {
            background: linear-gradient(135deg, #f44336, #ff5722);
        }
        
        .menu-icon.yellow {
            background: linear-gradient(135deg, #ffc107, #ff9800);
        }
        
        .menu-info {
            flex: 1;
        }
        
        .menu-title {
            font-size: 15px;
            font-weight: bold;
            color: #333;
            margin-bottom: 3px;
        }
        
        .menu-subtitle {
            font-size: 12px;
            color: #999;
        }
        
        .menu-badge {
            background: #ff4d4f;
            color: white;
            border-radius: 10px;
            padding: 2px 6px;
            font-size: 10px;
            font-weight: bold;
        }
        
        .menu-arrow {
            color: #ccc;
            font-size: 16px;
        }
        
        /* 微信登录区域 */
        .wechat-login-section {
            margin: 15px;
        }
        
        /* 微信登录按钮样式 */
        .wechat-login-btn {
            background: linear-gradient(135deg, #1aad19, #07c160);
            border: none;
            border-radius: 20px;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 14px;
            width: 100%;
            box-shadow: 0 2px 8px rgba(26, 173, 25, 0.3);
        }
        
        .wechat-login-btn:hover {
            background: linear-gradient(135deg, #07c160, #1aad19);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(26, 173, 25, 0.4);
        }
        
        .wechat-icon {
            font-size: 16px;
        }
        
        .wechat-text {
            color: white;
            font-weight: 600;
        }
        
        /* 特殊入口样式 */
        .special-sections {
            background: white;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin: 0 15px;
            padding: 0 0 15px 0;
        }
        
        .special-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }
        
        .special-card:hover {
            transform: translateY(-2px);
        }
        
        .special-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
        }
        
        .cadre-card::before {
            background: linear-gradient(90deg, #1890ff, #40a9ff);
        }
        
        .cadre-card:hover {
            box-shadow: 0 8px 20px rgba(24, 144, 255, 0.15);
        }
        
        .partner-card::before {
            background: linear-gradient(90deg, #722ed1, #b37feb);
        }
        
        .partner-card:hover {
            box-shadow: 0 8px 20px rgba(114, 46, 209, 0.15);
        }
        
        .special-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }
        
        .special-title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }
        
        .special-subtitle {
            font-size: 11px;
            color: #999;
        }
        
        
        /* 微信授权弹窗 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }
        
        .modal.show {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 30px;
            margin: 20px;
            max-width: 300px;
            width: 100%;
            text-align: center;
            animation: slideUp 0.3s ease;
        }
        
        .modal-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }
        
        .modal-text {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 20px;
        }
        
        .modal-buttons {
            display: flex;
            gap: 10px;
        }
        
        .modal-btn {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .modal-btn-cancel {
            background: #f5f5f5;
            color: #666;
        }
        
        .modal-btn-cancel:hover {
            background: #e0e0e0;
        }
        
        .modal-btn-confirm {
            background: linear-gradient(135deg, #1aad19, #07c160);
            color: white;
        }
        
        .modal-btn-confirm:hover {
            background: linear-gradient(135deg, #07c160, #1aad19);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            display: flex;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 100;
        }
        
        .nav-item {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .nav-item-icon {
            font-size: 20px;
            margin-bottom: 2px;
        }
        
        .nav-label {
            font-size: 10px;
            color: #999;
        }
        
        .nav-item.active .nav-item-icon {
            color: #1976d2;
        }
        
        .nav-item.active .nav-label {
            color: #1976d2;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="navbar">
        <div class="navbar-left" onclick="goBack()">
            <span class="back-btn">←</span>
            <span class="navbar-title">个人中心</span>
        </div>
        <div class="navbar-right">
            <span class="nav-icon" onclick="showQR()">📱</span>
            <span class="nav-icon" onclick="showSettings()">⚙️</span>
        </div>
    </div>
    
    <!-- 渐变背景区域 -->
    <div class="gradient-background">
        <!-- 用户头部卡片 -->
        <div class="profile-header">
            <div class="profile-content">
                <div class="profile-info">
                    <div class="profile-avatar" onclick="changeAvatar()">👤</div>
                    <div class="profile-details">
                        <div class="profile-name">
                            张三
                            <span class="profile-level">⭐⭐⭐</span>
                        </div>
                        <div class="profile-title">金牌志愿者</div>
                        <div class="profile-id">ID: 20240001</div>
                    </div>
                </div>
                <div class="profile-stats">
                    <div class="stat-item">
                        <div class="stat-number">1,250</div>
                        <div class="stat-label">积分</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-number">48h</div>
                        <div class="stat-label">服务时长</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-number">15</div>
                        <div class="stat-label">参与活动</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-number">8</div>
                        <div class="stat-label">获得成就</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 微信登录 -->
        <div class="wechat-login-section">
            <div class="wechat-login-btn" onclick="showWechatLogin()">
                <span class="wechat-icon">💬</span>
                <span class="wechat-text">微信登录</span>
            </div>
        </div>
    </div>
    
    <!-- 干部入口和合作伙伴 -->
    <div class="special-sections">
        <div class="special-card cadre-card" onclick="showCadreEntrance()">
            <div class="special-icon">👨‍💼</div>
            <div class="special-title">干部入口</div>
            <div class="special-subtitle">党政干部专属服务</div>
        </div>
        <div class="special-card partner-card" onclick="showPartnerEntrance()">
            <div class="special-icon">🤝</div>
            <div class="special-title">合作伙伴</div>
            <div class="special-subtitle">企业机构合作入口</div>
        </div>
    </div>
    
    <!-- 功能菜单 -->
    <div class="menu-section">
        <div class="menu-item" onclick="location.href='services.html'">
            <div class="menu-icon blue">🎁</div>
            <div class="menu-info">
                <div class="menu-title">我的服务</div>
                <div class="menu-subtitle">查看申请和提供的服务</div>
            </div>
            <div class="menu-badge">2</div>
            <div class="menu-arrow">></div>
        </div>
        <div class="menu-item" onclick="location.href='activities.html'">
            <div class="menu-icon orange">📅</div>
            <div class="menu-info">
                <div class="menu-title">我的活动</div>
                <div class="menu-subtitle">查看参与记录</div>
            </div>
            <div class="menu-arrow">></div>
        </div>
        <div class="menu-item" onclick="location.href='mall.html'">
            <div class="menu-icon green">🎁</div>
            <div class="menu-info">
                <div class="menu-title">积分商城</div>
                <div class="menu-subtitle">兑换精美礼品</div>
            </div>
            <div class="menu-arrow">></div>
        </div>
        <div class="menu-item" onclick="showTeam()">
            <div class="menu-icon purple">👥</div>
            <div class="menu-info">
                <div class="menu-title">我的团队</div>
                <div class="menu-subtitle">志愿者团队管理</div>
            </div>
            <div class="menu-arrow">></div>
        </div>
        <div class="menu-item" onclick="showHelp()">
            <div class="menu-icon yellow">❓</div>
            <div class="menu-info">
                <div class="menu-title">帮助中心</div>
                <div class="menu-subtitle">常见问题和使用指南</div>
            </div>
            <div class="menu-arrow">></div>
        </div>
        <div class="menu-item" onclick="showFeedback()">
            <div class="menu-icon red">💬</div>
            <div class="menu-info">
                <div class="menu-title">群众反馈</div>
                <div class="menu-subtitle">提出宝贵意见和建议</div>
            </div>
            <div class="menu-arrow">></div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="nav-item" onclick="location.href='index.html'">
            <div class="nav-item-icon">🏠</div>
            <div class="nav-label">首页</div>
        </div>
        <div class="nav-item" onclick="location.href='venues.html'">
            <div class="nav-item-icon">📍</div>
            <div class="nav-label">阵地</div>
        </div>
        <div class="nav-item" onclick="location.href='activities.html'">
            <div class="nav-item-icon">📅</div>
            <div class="nav-label">活动</div>
        </div>
        <div class="nav-item" onclick="location.href='services.html'">
            <div class="nav-item-icon">🎁</div>
            <div class="nav-label">服务</div>
        </div>
        <div class="nav-item active">
            <div class="nav-item-icon">👤</div>
            <div class="nav-label">我的</div>
        </div>
    </div>
    
    <!-- 微信授权弹窗 -->
    <div class="modal" id="wechatModal">
        <div class="modal-content">
            <div class="modal-icon">📱</div>
            <div class="modal-title">微信授权</div>
            <div class="modal-text">
                需要获取您的微信昵称、头像等基本信息，用于个人信息展示和账号关联。
                <br><br>
                我们承诺保护您的隐私信息安全。
            </div>
            <div class="modal-buttons">
                <button class="modal-btn modal-btn-cancel" onclick="closeWechatModal()">取消</button>
                <button class="modal-btn modal-btn-confirm" onclick="confirmWechatLogin()">同意</button>
            </div>
        </div>
    </div>
    
    <script>
        // 返回上一页
        function goBack() {
            history.back();
        }
        
        // 显示二维码
        function showQR() {
            alert('个人二维码\n\n功能包括：\n• 个人志愿者身份码\n• 扫码添加好友\n• 分享个人页面\n\n功能开发中...');
        }
        
        // 显示设置
        function showSettings() {
            alert('设置中心\n\n功能包括：\n• 个人信息编辑\n• 隐私设置\n• 通知设置\n• 账号安全\n• 关于我们\n\n功能开发中...');
        }
        
        // 更换头像
        function changeAvatar() {
            alert('更换头像\n\n支持：\n• 拍照上传\n• 相册选择\n• 系统头像\n\n功能开发中...');
        }
        
        // 显示微信登录弹窗
        function showWechatLogin() {
            const modal = document.getElementById('wechatModal');
            modal.classList.add('show');
        }
        
        // 关闭微信授权弹窗
        function closeWechatModal() {
            const modal = document.getElementById('wechatModal');
            modal.classList.remove('show');
        }
        
        // 确认微信登录
        function confirmWechatLogin() {
            closeWechatModal();
            // 模拟登录过程
            setTimeout(() => {
                alert('🎉 微信登录成功！\n\n欢迎回来，张小明\n已获取基本信息并完成账号绑定');
                // 这里可以更新用户信息显示
                updateUserProfile();
            }, 1000);
        }
        
        // 更新用户信息
        function updateUserProfile() {
            // 模拟更新用户头像和信息
            const avatar = document.querySelector('.profile-avatar');
            const name = document.querySelector('.profile-name');
            avatar.textContent = '👤';
            // 这里可以添加真实的微信用户信息更新逻辑
        }
        
        // 干部入口
        function showCadreEntrance() {
            // 模拟身份验证
            const isAuthorized = confirm('🏛️ 干部身份验证\n\n请确认您是否具有干部管理权限?\n\n点击"确定"继续，"取消"返回');
            
            if (isAuthorized) {
                // 跳转到干部管理页面
                window.location.href = 'cadre-dashboard.html';
            } else {
                alert('❌ 访问被拒绝\n\n您没有访问干部管理系统的权限。\n如需申请权限，请联系系统管理员。');
            }
        }
        
        // 合作伙伴入口
        function showPartnerEntrance() {
            window.location.href = 'business-cooperation.html';
        }
        
        // 菜单项功能
        
        function showTeam() {
            alert('我的团队\n\n• 环保行动小分队\n• 敬老志愿服务队\n• 文明实践宣传组\n\n功能开发中...');
        }
        
        function showHelp() {
            alert('帮助中心\n\n常见问题：\n• 如何参与志愿活动？\n• 积分如何获得和使用？\n• 如何申请服务？\n• 如何预约阵地？\n\n功能开发中...');
        }
        
        function showFeedback() {
            alert('💬 群众反馈\n\n我们非常重视您的意见和建议！\n\n反馈类型：\n• 功能建议\n• 问题报告\n• 服务改进\n• 用户体验\n• 其他意见\n\n您的反馈将帮助我们不断改进服务质量。\n\n功能开发中...');
        }
        
        
        // 统计数据点击
        document.querySelectorAll('.stat-item').forEach((item, index) => {
            item.addEventListener('click', function() {
                const features = [
                    '积分详情：\n• 当前积分：1,250分\n• 本月获得：280分\n• 累计消费：850分',
                    '服务时长统计：\n• 累计时长：48小时\n• 本月时长：12小时\n• 平均每次：3.2小时',
                    '活动参与记录：\n• 累计参与：15次\n• 本月参与：3次\n• 完成率：100%',
                    '成就解锁进度：\n• 已解锁：8个\n• 可解锁：2个\n• 总成就：20个'
                ];
                alert(features[index]);
            });
        });
        
        // 点击弹窗背景关闭弹窗
        document.getElementById('wechatModal').addEventListener('click', function(e) {
            if (e.target === this) {
                closeWechatModal();
            }
        });
    </script>
</body>
</html>